#include<stdio.h>

int cmmdc(int a,int b)
{while(a!=b)
 {if(a>b)
    a=a-b;
  else
    b=b-a;}
 return a;}

void simplificare(int numitor,int numarator)
{int c=2;
 while((c!=numitor)&&(c!=numarator))
  {if((numitor%c==0)&&(numarator%c==0))
     {printf("fractia a fost simplificata cu ",c);
      numitor=numitor/c; numarator=numarator/c;
      printf("noua fractie este:", numarator,"/",numitor);}
   c++;}}

int adunare_fractie(int numitor,int numarator)
{

int main()
{int x,y;
 float z;
 scanf("introduceti numaratorul:",x);
 scanf("introduceti numitorul:",y);
 printf("numar rational:");
 z=x/y;
 printf(z,"%f");
 return 0;}
